package lab02.test14;

public class Rectangle extends Shape {

double weight;
double height;

public Rectangle( double weight,double height ){

    this.weight = weight;
    this.height = height;

}
    @Override
    public double getArea(){
        System.out.println("长方形面积：");
        return weight * height;
    }
}
